/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsSampleOutputEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>生产管理样品出入库管理</p>
 *
 * @author: summer
 * @date: 2021-05-27 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsSampleOutputMapper extends BaseMapper<PmsSampleOutputEntity> {

	public boolean deleteByIds( @Param("ids") Long[] ids);
	public boolean updateCheck( @Param("id") Long id,@Param("userId")Long userId);
	//查询用户信息
	public SysUserEntity getSysById(@Param("userId")Long userId);

	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsSampleOutputEntity> findPage(IPage<?> params,
										 @Param("sampleCode") String sampleCode,
										 @Param("sampleType") String sampleType,
										 @Param("registerName") String registerName,
										 @Param("beginTime") String beginTime,
										 @Param("endTime") String endTime,
										 @Param("beginTime2") String beginTime2,
										 @Param("endTime2") String endTime2,
										 @Param("sampleCode2") String sampleCode2,
										 @Param("sampleType2") String sampleType2,
                                         @Param("sql_filter") String sql_filter);

	List<PmsSampleOutputEntity> findList(IPage<?> params,
										 @Param("sampleCode") String sampleCode,
										 @Param("sampleType") String sampleType,
										 @Param("registerName") String registerName,
										 @Param("sql_filter") String sql_filter);

}
